home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
flexte.arc
/
FLEXTEND.FRM
< prev
next >
Wrap
Text File
|
1989-02-24
|
6KB
|
104 lines
/SCREEN
╔═════════════════════════════════════════════════════════════════════════════╗
║ Flextend Demo Bennett Software Solutions ║
╠═══════════════════════════════[DOS Functions]═══════════════════════════════╣
║ Flextend Version : ___________ ║
║ Serial Ports : _. ║
║ Current Drive : _ ║
║ Floppies : _. ║
║ Size of FLEXTEND.FLX : _____. ║
║ Available Disk Space : _________. ║
║ Printers : _. ║
║ DOS Version : _____ ║
║ Current Directory : ________________________________ ║
║ ║
╠══════════════════════════════[Novell Functions]═════════════════════════════╣
║ Workstation ID : ___. ║
║ Server version : _______ ║
║ Server Name : ________________________________________________ ║
║ Local Disks : _. ║
║ Physical ID : ____________ ║
║ User Name : ________________________________________________ ║
║ Printer '0' : Form is __., it is _______ and _______ ║
║ ║
╚═════════════════════════════════════════════════════════════════════════════╝
RETURN to run again, F9 to refresh the screen, ESCAPE to exit _,
/ERR
╔═════════════════════════════════════════════════════════════════════════════╗
║ An error has occured involving FLEXTEND. Please check the following ║
║ ║
╠═════════════════════════════════════════════════════════════════════════════╣
║ ║
║ - Has DFRET been added to your MS-DOS environment? Use the command: ║
║ ║
║ SET DFRET=XXXXXXXXXXXXXXXXXXXXXXXX ║
║ ║
║ from DOS to allocate some space for return information for Flextend. ║
║ ║
╠═════════════════════════════════════════════════════════════════════════════╣
║ ║
║ - Is FLEXTEND.EXE accessabile. Is it in the current directory or a ║
║ ║
║ directory that can be accessed from MS-DOS ║
║ ║
╚═════════════════════════════════════════════════════════════════════════════╝
_
/*
// * Include files
#INCLUDE FLEXTEND.MAC // Include access to the FLEXTEND executable
// * Declare variables
INDICATOR PRINT_STATUS
STRING VERSION
INTEGER POSIT
// * Get Flextend version / Abort if Flextend not found
FLEXTEND_VER VERSION
POS '.' IN VERSION TO POSIT
IF POSIT EQ 0 BEGIN
ACCEPT ERR.1
ABORT
END
// * Main program loop
PAGE SCREEN
REPEAT
// * DOS Commands
MOVE VERSION TO SCREEN.1 // Flextend version
SERIALPORTS SCREEN.2 // Serial ports installed
CURRENT_DRIVE SCREEN.3 // Current drive letter
FLOPPIES SCREEN.4 // Number of floppy drives
DOS_FILESIZE 'FLEXTEND.FLX' TO SCREEN.5 // DOS filesize
DISKSPACE "" TO SCREEN.6 // Disk space of current drive
PRINTERS SCREEN.7 // Number of printers
DOS_VERSION SCREEN.8 // Current DOS version
CURRENT_DIR "" TO SCREEN.9 // Current Directory
// * Novell Commands
WS_ID SCREEN.10
IF SCREEN.10 NE 0 BEGIN // * Check for a workstaion ID number first
SERVER_VER SCREEN.11 // Server Version
SERVER_NAME SCREEN.12 // Server Name
LOCAL_DISK SCREEN.13 // Local Disks
PHYSICAL_ID SCREEN.14 // Phys. Station #
USER_NAME SCREEN.15 // User Name
FORM_LOADED 0 TO SCREEN.16 // Loaded Form #
PRINTER_HALTED 0 TO PRINT_STATUS // Printer Halted?
[PRINT_STATUS] MOVE 'HALTED' TO SCREEN.17 // - Yes it is
[NOT PRINT_STATUS] MOVE 'RUNNING' TO SCREEN.17 // - Nope...
PRINTER_OFFLINE 0 TO PRINT_STATUS // Printer Offline?
[PRINT_STATUS] MOVE 'OFFLINE' TO SCREEN.18 // - Yes
[NOT PRINT_STATUS] MOVE 'ONLINE' TO SCREEN.18 // - No running fine
END
ACCEPT SCREEN.19 // Pause a bit
[KEY.CLEAR] CLEARSCREEN // Refresh display?
[KEY.CLEAR] CLEARFORM SCREEN
[KEY.CLEAR] PAGE SCREEN
UNTIL [KEY.ESCAPE]
CLEARSCREEN
ABORT